<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Return version info of Phar archive</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="phar.getsupportedsignatures.html">Phar::getSupportedSignatures</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="phar.hasmetadata.html">Phar::hasMetadata</a></div>
 <div class="up"><a href="class.phar.html">Phar</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="phar.getversion" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Phar::getVersion</h1>
  <p class="verinfo">(PHP &gt;= 5.3.0, PECL phar &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">Phar::getVersion</span> &mdash; <span class="dc-title">Return version info of Phar archive</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-phar.getversion-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><strong>Phar::getVersion</strong></span>
    ( <span class="methodparam">void</span>
   )</div>


  <p class="para rdfs-comment">
   Returns the API version of an opened Phar archive.
  </p>

 </div>

 <div class="refsect1 parameters" id="refsect1-phar.getversion-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-phar.getversion-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   The opened archive&#039;s API version.  This is not to be confused with
   the API version that the loaded phar extension will use to create
   new phars.  Each Phar archive has the API version hard-coded into
   its manifest.  See <a href="phar.fileformat.html" class="link">Phar file format</a>
   documentation for more information.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-phar.getversion-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="phar.apiversion.html" class="function" rel="rdfs-seeAlso">Phar::apiVersion()</a> - Returns the api version</span></li>
   </ul>
  </p>
 </div>



</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="phar.getsupportedsignatures.html">Phar::getSupportedSignatures</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="phar.hasmetadata.html">Phar::hasMetadata</a></div>
 <div class="up"><a href="class.phar.html">Phar</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
